﻿<UserControl x:Class="StoryMaker.Application.ShapeControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:StoryMaker.Application" 
             xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing" 
             mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="300">
    <UserControl.Resources>
        <local:ShapeDataTemplateSelector x:Key="ShapeDataTemplateSelector" />
        </UserControl.Resources>
    <Grid>
        <ContentControl Name="ContentControl" ContentTemplateSelector="{StaticResource ResourceKey=ShapeDataTemplateSelector}" Content="{Binding Path=ShapeModel, RelativeSource={RelativeSource FindAncestor, AncestorType=local:ShapeControl, AncestorLevel=1}}" />
    </Grid>
</UserControl>
